<jsp:useBean id="Constants" class="battleship.Constants" scope="page" />
<jsp:useBean id="LoginInfo" class="battleship.LoginInfo" scope="page" />

<%= Constants.DOCTYPE %>
<html>
<head>
<%= Constants.META_CONTENT %>
<title><%= Constants.TITLE %> - Home</title>
<%= Constants.LINK_CSS %>
<body>
<%= LoginInfo.getLinks(request) %>
<div>
<% if (LoginInfo.loggedIn(session)) { %>
    <ul>
        <li><a href="manage.jsp">Manage games and invites</a></li>
        <li><a href="settings.jsp">Account settings</a></li>
        <li><a href="editprofile.jsp">Edit profile</a></li>        
    </ul>
<% } else { 
	response.sendRedirect("login.jsp");%>
    You must <a href="login.jsp">log in</a> before playing.
<% } %>
</div>
</body>
</html>